package jman.teemwork04;

public class SubCar extends Car{
	int price,speed;

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}
	void speedChange(int newSpeed){
		this.speed=newSpeed;
	}
}
